#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int max(int x, int y);
	int arr[10], i, m;
	for (i = 0; i < 10; i++)
		scanf("%d", &arr[i]);
		printf("\n");
	for (i = 1, m = arr[0]; i < 10; i++)
	{
		if (max(m, arr[i]) > m)
			m = max(m, arr[i]);
	}
	printf("%d\n", m);
	return 0;
}
int max(int x, int y)
{
	return(x > y ? x : y);
}